import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';

class CustomRoute extends CupertinoPageRoute{
  final Widget widget;
  String routeName;
  CustomRoute(this.widget, {this.routeName=""})
  :super(
    settings : RouteSettings(name: routeName),
    builder : (BuildContext context) {
      return widget;
    }    
  );
}
